<?php
class view
{
    function __construct()
    {
        $themeInfo = db::selectByFilter('name', 'theme', 'config');
        $this->theme = $themeInfo['value'];
    }
    
    public function layout($html)
    {
        include VIEW.$this->theme.'/'.$html.'.html';
    }
}